﻿using System;

namespace 身份证号生成工具
{
    class Program
    {
        static void Main(string[] args)
        {
            Create20IDCard();
            while (true)
            {
                Console.WriteLine("回车继续生成 20 个身份证号");
                Console.WriteLine("1 返回身份证号 + 省市县地址");
                string type = Console.ReadLine();
                Create20IDCard(type);
            }
        }

        static void Create20IDCard(string type = "0")
        {
            switch (type)
            {
                case "1":
                    for (int i = 0; i < 20; i++)
                    {
                        Console.WriteLine(IDCardNumber.Radom(1));
                    }
                    break;
                default:
                    for (int i = 0; i < 20; i++)
                    {
                        Console.WriteLine(IDCardNumber.Radom());
                    }
                    break;
            }
        }


    }
}
